Skip to content

fix(inertia): make useRoute().fullPath reactive across navigations#256

Merged
IgorShevchik merged 1 commit into
mainfrom
sync/nuxt-c256997
Jul 10, 2026
Merged

fix(inertia): make useRoute().fullPath reactive across navigations#256
IgorShevchik merged 1 commit into
mainfrom
sync/nuxt-c256997

Conversation

@IgorShevchik

Copy link
Copy Markdown
Collaborator

Upstream

c256997fix(inertia): make useRoute().fullPath reactive across navigations (#6696)

Change — direct 1:1

The Inertia useRoute() stub returned fullPath: page.url — a value captured once at call time, so it went stale across Inertia navigations. Convert it to a getter (get fullPath() { return page.url }) so reads always reflect the current page.url. b24ui's src/runtime/vue/stubs/inertia.ts matched upstream.

Tests

Runtime stub → no snapshot churn. Full suite unchanged (5289 passed / 6 skipped).

Verify (CI=true)

dev:prepare · lint · typecheck · test · build — all green.

Ledger

  • .sync/log/c256997….md — port rationale
  • .sync/nuxt-ui.json — add c256997 as port, advance cursor; reconcile prior 7bdcb13 → PR feat(Prompt): add claude action #255 / 9267e867.

🤖 Generated with Claude Code


Generated by Claude Code

Port of upstream nuxt/ui c256997 (#6696).

The Inertia useRoute() stub returned `fullPath: page.url` — captured once at
call time and stale across navigations. Convert it to a getter so reads always
reflect the current page.url.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JS8ypVfQSFzYVZzkTHhURb
@IgorShevchik IgorShevchik merged commit cde06e9 into main Jul 10, 2026
1 check passed
@IgorShevchik IgorShevchik deleted the sync/nuxt-c256997 branch July 10, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants